package com.xiangxiao.rpan.authority.dao;

import com.xiangxiao.rpan.authority.model.Operation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Projectname: OperationMapper
 * @Author: xiangxiao
 * @Email: 573768011@qq.com
 * @Data:2023/3/27 8:02
 */
public interface OperationMapper {

  /**
   * 获取指定模块的下的操作
   *
   * @param moduleIds
   * @return
   */
  List<Long> findOperationIdsByModuleIds(@Param("moduleIds") List<Long> moduleIds);

  /**
   * 根据id集合批量查询
   *
   * @param ids
   * @return
   */
  List<Operation> findListOperationByIds(@Param("ids") List<Long> ids);
}
